<?php

class commentForms extends form {

	public static function add($errors, $blogId, $place)
	{
		$show = self::dispErrors($errors);
		$show .= '
			<form action="' . ROOT_URL . URL_BASE . $place . '/addComment/'. $blogId . '" method="post">
				<fieldset>
					<legend>Add Comment</legend>
					<p>E-mail: <input type="text" name="email" value="' . self::postValue('email') .'" /></p>
					<p>Name: <input type="text" name="name" value="' . self::postValue('name') .'" /></p>
					<p>Content: </p>
					' . form::textarea('content',self::postValue('content')) . '
					<p><input type="submit" name="submit" value="Add Comment" /></p>
				</fieldset>
			</form>';
			
		return $show;
	}
}
?>